<?php
namespace Laoha\Blog\Admin\Forms\Catesets;

use Encore\Admin\Widgets\Form;
use App\Admin\Forms\Catesets\Setbase;
use Laoha\Blog\Models\LaohaBlog;

class Blog extends Setbase
{
    /**
     * The form title.
     *
     * @var string
     */
    public $title  = '应用';
 
    /**
     * Build a form here.
     */
    public function form()
    {		
		$this->hidden('id');
		$this->divider('表单可选字段');
		$this->select('need.images','图片')->options(['禁用','启用','启用且必须']);
		$this->select('need.video','视频')->options(['禁用','启用','启用且必须']);		
		$this->select('need.link','外链')->options(['禁用','启用','启用且必须']);
		$this->divider('编辑器选择');
		$this->select('editor','编辑器选择')->default('html')->options(['html'=>'HTML','md'=>'MokeDown','txt'=>'TEXT']);

		$this->reset_app();
    }

}
